<include file="Public:pageHeader"/>
<link rel=" stylesheet" type="text/css" href="_STATIC_/css/member.css" />
<!--主区域-->
<div class="mainBox on">
    <div class="my-page">
        <div class="wrapper"">
        <div class="my_p">
            <include file="Member:memberLeft"/>
            <div class="my_form">
                <p class="m_p1">当前位置：管理员管理</p>
                <div class="line"></div>
                <button class="table-top-btn" id="adduser">添加管理员</button>
                <table class="table">
                    <tr>
                        <th class="table-title" style="width:110px">管理员编号</th>
                        <th class="table-title" style="width:180px">账户名称</th>
                        <th class="table-title" style="width:150px">账户手机号</th>
                        <th class="table-title">是否禁用</th>
                        <th class="table-title" style="width:160px">注册时间</th>
                        <th class="table-title" style="width:200px">操作</th>
                    </tr>
                    <tbody>
                    <volist name="adminusers" id="vo" key="k">
                        <tr <?php if ( ( $k % 2) != 0 ) echo 'style="background: #F7F9FA"'; ?> >
                            <td class="table-content">{$vo.admin_id}</td>
                            <td class="table-content" title="{$vo.user_name}">{$vo.user_name}</td>
                            <td class="table-content">{$vo.user_mobile}</td>
                            <td class="table-content">
                                <eq name="vo.disabled_status" value="0">正常</eq>
                                <eq name="vo.disabled_status" value="1">已禁用</eq>
                            </td>
                            <td class="table-content">{$vo.created_at}</td>
                            <td class="table-content">
                                <div style="height: 5px"></div>
                                <button class="btn changeadminstatus" unionsn="{$vo.admin_id}_{$vo.disabled_status}" user_name="{$vo.user_name}" disabled_status="{$vo.disabled_status}">
                                    <eq name="vo.disabled_status" value="0">账户禁用</eq>
                                    <eq name="vo.disabled_status" value="1">账户启用</eq>
                                </button>
                                <eq name="vo.resetpwd" value = "1">
                                    <button class="btn resetadminuserpwd" unionsn="{$vo.admin_id}" user_name="{$vo.user_name}">重置密码</button>
                                </eq>
                                <button class="btn deladminuser" unionsn="{$vo.admin_id}" user_name="{$vo.user_name}">删除</button>
                            </td>
                        </tr>
                    </volist>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
</div>
<!-- 添加管理员遮罩层 -->
<div class="my_mengceng adduserBox">
    <div class="shuru">
        <img src="_STATIC_/img/close.png" alt="" class="my_close cancelAdduserBox">
        <p class="my_p1">添加管理员</p>
        <p class="my_p2">用户名</p>
        <div class="m_p3">
            <input type="text" id="user_name" placeholder="请输入用户名" style="width: 321px;height: 40px;padding-left: 20px;">
        </div>
        <p class="my_p2">手机号码</p>
        <div class="m_p3">
            <input type="text" id="user_mobile" placeholder="请输入手机号码" style="width: 321px;height: 40px;padding-left: 20px;">
        </div>
        <ul class="my_btn">
            <li class="b1 cancelAdduserBox">取消</li>
            <li class="on b2" id="adduserBtn">确定</li>
        </ul>
    </div>
</div>
<!--底部区域-->
<include file="Public:pageFooter" />
</body>
</html>
<script type="text/javascript" src="_STATIC_/js/member-adminusers.js" ></script>